package cn.shanks.dubbo.consume.controller;

import cn.shanks.dubbo.consume.service.PersonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Shanks
 * @version 1.0
 * @program cn.shanks.dubbo.consume.controller
 * @description
 * @date 2020/9/25 14:15
 */
@RestController
@RequestMapping("/person")
public class PersonController {

    @Autowired
    private PersonService personService;

    @GetMapping("/{value}")
    public String test(@PathVariable("value") String value) {
        return personService.say(value);
    }
}
